cmake_minimum_required(VERSION 3.22)
set(project_name linux_md)
project(${project_name})

set(CMAKE_CXX_STANDARD 23)
add_compile_options(-fPIC)#增加位置无关选项
add_compile_options(O3)#增加O3级优化，不确定能用
set(so_path ${CMAKE_CURRENT_SOURCE_DIR}/../so/)
message("linux行情ctp库链接路径:${so_path}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
link_directories(${so_path})

add_library("${project_name}" #
		SHARED
		linux_md_导入依赖.cpp
		md_wrap.cxx
		)

target_link_libraries(${project_name}
		libLinuxDataCollect.so
		libthostmduserapi_se.so
		libthosttraderapi_se.so
		)